{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% get_available_languages as LANGUAGES %}
{% get_current_language_bidi as LANGUAGE_BIDI %}

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}">

<head>
<!-- Meta -->
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="{% if LANGUAGE_BIDI %}fa{% else %}en{% endif %}"/>
<meta name="description" 
	content='ads advertisement management system content management system cms {% block custom_meta_description %}{% endblock custom_meta_description %}' />
<meta name="keywords" 
	content='ads advertisement cms content {% trans "AMSCMS Main Title" %} {% block custom_meta_keywords %}{% endblock custom_meta_keywords %}' />
{% block custom_meta %}{% endblock %} 
<!-- Styles -->
<link rel="stylesheet" href="/static/styles/blueprint/screen.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="/static/styles/blueprint/print.css" type="text/css" media="print">	
<!--[if lt IE 8]><link rel="stylesheet" href="/static/styles/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
<link rel="stylesheet" href="/static/styles/blueprint/plugins/fancy-type/screen.css" type="text/css" media="screen, projection" />  
<link rel="stylesheet" href="/static/styles/blueprint/plugins/rtl/screen.css" type="text/css" media="screen, projection">
<link rel="Stylesheet" type="text/css" href="/static/styles/jqueryui/base/jquery.ui.all.css" />
<link rel="Stylesheet" type="text/css" href="/static/styles/paginator.css" />
<link rel="Stylesheet" type="text/css" href="/static/styles/ads.css" />
{% block custom_styles %}{% endblock %}
<!-- Scripts -->
<script type="text/javascript" src="/static/js/amscms.js"></script>
<script type="text/javascript" src="/static/js/jquery.js"></script>
<script type="text/javascript" src="/static/js/jquery-ui.custom.min.js"></script>
{% block custom_scripts %}{% endblock %} 
<title>{% trans "AMSCMS Main Title" %} - {% block title %}{% endblock %}</title>
</head>

<body>

<div id="container" class="container">
<div class="span-24 last">&nbsp;</div>
<div id="header" class="span-24 last">
<h1>{% trans "AMSCMS Main Title" %}</h1>
{% block custom_header %}{% endblock %}
</div>

<div id="content" class="span-24">
{% block content %}Base Content{% endblock content %}
</div>

<div id="footer" class="span-24 last">
{% block custom_footer %}{% endblock %}
{% if user.is_authenticated %}
<a href="/my/">{{ user }}</a> [<a href="/core/logout">{% trans "Logout" %}</a>] &bull;
{% else %}  
<a href="/core/login">{% trans "Login" %}</a> &bull;
{% endif %}
<a href="/ads/register">{% trans "Register New Ad" %}</a> &bull;
<a href="/">{% trans "Home" %}</a> 
</div>

</div>

</body>

</html>